package com.leesche.zcsp.node.pay.wecha.service;

import com.leesche.zcsp.node.pay.wecha.data.Message;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;

@Service
public interface PayService {


    /**
     * @param deviceid
     * @param discountid
     * @return 返回url
     * @Description: 生成二维码
     * @author 陈辉洪
     */
    String generaterAlipay(String deviceid, String discountid);

    /**
     * @param deviceid;
     * @param discountid
     * @param encode
     * @return 返回url
     * @Description: 生成微信二维码
     * @author 陈辉洪
     */
    String generateURL(String deviceid, String discountid, String encode);

    /***
     * @param @param  user_agent
     * @param @return
     * @return boolean
     * @throws
     * @Title: isWechatBrower
     * @Description: 判断是否微信浏览器
     */
    boolean isWechatBrower(String userAgent);

    /***
     * @param @param  user_agent
     * @param @return
     * @return boolean
     * @throws
     * @Title: isAlipayBrower
     * @Description: 判断是否支付宝浏览器
     */
    boolean isAlipayBrower(String userAgent);
}